<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户注册页面</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <script src="/js/jquery-3.6.0.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/list.js"></script>
    <style>
        b{
            font-weight: bolder;
            color: red;
        }
        body{
            background:url("/image/background.png") no-repeat center center;   /*加载背景图*/   /* 背景图不平铺 */
            background-size:cover;  /* 让背景图基于容器大小伸缩 */
            background-attachment:fixed;        /* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 */
            background-color:#CCCCCC;   /* 设置背景颜色，背景图加载过程中会显示背景色 */
        }
        .button {
            -webkit-transition-duration: 0.4s; /* Safari */
            transition-duration: 0.4s;
        }

        .button:hover {
            color: white;
        }
    </style>
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.19.1/dist/bootstrap-table.min.css">
</head>
<body>

<div class="container" style="margin-top: 10%">
    <div class="row">
        <div class="col-md-12 " style="text-align: center">
            <form id="formuser" class="form-horizontal">
                <fieldset>
                    <legend>用户注册</legend>
                    <div class="form-group">
                        <label class="col-md-4 control-label" for="name">用户名称</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control" id="name" name="name" placeholder="用户名">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-4 control-label" for="sno">学工号</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control" id="sno" name="sno" placeholder="学工号">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-4 control-label" for="password">用户密码</label>
                        <div class="col-md-4">
                            <input type="password" class="form-control" id="password" name="password" placeholder="密码">
                        </div>
                    </div>
                    <!--<div class="form-group">
                        <label class="col-md-4 control-label" for="con">确认密码</label>
                        <div class="col-md-4">
                            <input class="form-control" id="con" type="password" placeholder="确认密码">
                        </div>
                    </div>-->
                    <!--<div class="form-group">
                        <label class="col-md-4 control-label" for="status"></label>
                        <div class="col-md-4" id="status">
                            <div class="radio-inline">
                                <input type="radio" name="status" id="teacher" value="teacher" checked/>教师
                            </div>
                            <div class="radio-inline">
                                <input type="radio" name="status" id="student" value="student"/>学生
                            </div>
                        </div>
                    </div>-->
                    <div class="form-group">
                        <label class="control-label col-md-4" for="status">用户身份</label>
                        <div class="col-md-4">
                    <select class="form-control" id="status" >
                        <option value="1">教师</option>
                        <option value="2">学生</option>
                    </select>
                    </div>
                    </div>
                    <div class="modal fade" tabindex="-1" role="dialog" id="ExitModal">
                        <div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                </div>
                                <div class="modal-body" >
                                    <form action="logout">
                                        <form class="form-group">
                                            <label class="control-label" style="font-size: 22px;text-align: center">确认要退出吗？</label>
                                        </form>
                                    </form>
                                </div>
                                <div class="modal-footer">
                                    <a class="btn btn-default" th:href="@{/logout}" >确认</a>
                                    <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
                                </div>
                            </div><!-- /.modal-content -->
                        </div><!-- /.modal-dialog -->
                    </div><!-- /.modal -->
                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                            <input class="btn btn-primary" type="submit" onclick="saveuser()" value="提交"/>
                            <input class="btn btn-warning" type="reset" value="重置"/>
                            <input class="btn btn-danger"  type="button" data-toggle="modal" data-target="#ExitModal" value="退出" />
                        </div>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
</div>
<!--<div class="container">
    <div class="row">
        <div class="col-md-12 " style="text-align: center;margin-top: 20%">
            <form class="form-horizontal" method="post" action="#">
                &lt;!&ndash; 表单区域&ndash;&gt;
                <fieldset>
                    &lt;!&ndash;表单主题&ndash;&gt;
                    <legend style="font-weight: bold">教务系统</legend>
                    &lt;!&ndash; 每一个form-group都可以自定义布局&ndash;&gt;
                    <div class="form-group">
                        &lt;!&ndash; label表示文字提示标签,可以通过表单的组建的id提示&ndash;&gt;
                        <label class="col-md-4 control-label" for="username"></label>
                        <div class="col-md-4">
                            <input type="text" class="form-control form-inline" id="username" style="text-align: center;" name="username" placeholder="User Name">
                        </div>
                    </div>

                    <div class="form-group">
                        &lt;!&ndash; label表示文字提示标签,可以通过表单的组建的id提示&ndash;&gt;
                        <label class="col-md-4 control-label" for="password"></label>
                        <div class="col-md-4">
                            <input type="password" class="form-control form-inline" id="password" style="text-align: center" name="password" placeholder="密码">
                        </div>
                    </div>
                    &lt;!&ndash;<div class="form-group">
                        <label class="col-md-4 control-label" for="teacher"></label>
                        <div class="col-md-4">
                            <div class="radio-inline">
                                <input type="radio" name="identity" id="teacher" value="teacher" checked/>教师
                            </div>
                            <div class="radio-inline">
                                <input type="radio" name="identity" id="student" value="student"/>学生
                            </div>
                        </div>
                    </div>&ndash;&gt;
                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                            <button type="button" class="btn btn-default button" style="margin-right: 5px; font-weight: bolder; border-radius: 12px; background-color:#939393" onclick="login();">登录</button>
                            <button type="button" class="btn btn-default button" style="margin-left: 5px; font-weight: bolder; border-radius: 12px;background-color:#939393" onclick="login();">注册</button>
                        </div>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
</div>-->


</body>

</html>